package com.amigo.online.provider.user.service;

import com.amigo.online.common.base.security.LocalUser;
import com.amigo.online.common.core.response.Result;
import com.amigo.online.common.param.dto.vip.PayVipDto;
import com.amigo.online.common.param.result.VipChatInfo;
import com.amigo.online.common.param.result.VipInfo;
import com.amigo.online.provider.user.mapper.VipMemberTblMapper;
import com.amigo.online.provider.user.mapper.VipPriceTblMapper;
import com.amigo.online.provider.user.model.entity.VipMemberTbl;
import com.amigo.online.provider.user.model.entity.VipPriceTbl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RequestBody;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.List;

/**
 * @author pangdonghao
 * @version 1.0
 * @csdn https://blog.csdn.net/pangdongh
 * @createDate 2019/10/21 19:05
 */
@Service
public interface VIPService {







    void payVip(PayVipDto payVipDto);

    @Transactional(isolation = Isolation.READ_COMMITTED)
    void payVipByIOS(String base64);

    VipMemberTbl getVip();

    boolean isVip(long userId);

    VipInfo getVipInfo(long userId);

    VipChatInfo vipChat(Long userId);
}
